<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.DateFormat"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<jsp:include page="title.jsp"></jsp:include>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	</head>

	<body>
		<div class="widthall">
			<div class="floatleft ttjr whitediv em25"></div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em25"></div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em25"></div>
			<div class="floatleft ttjr whitediv em14"></div>
			<div class="floatleft ttjg em14"></div>
			<div class="floatleft ttzr whitediv em14"></div>
			<div class="floatleft ttjg em14"></div>
			<div class="floatleft ttzr whitediv em14"></div>
			<div class="floatleft ttjr whitediv em36">
				<div class="ttjrlb"></div>
				<div class="ttjrjg"></div>
				<div class="ttjrzt">
					<div class="floatleft lineh36">
						<span class="font22">今日</span>
						
					</div>
					<div class="floatright lineh36">
						<img src="images/weather${todayIndexes.todayIndexes.todayWeather}.png" class="weatherimg vermiddle"/>&nbsp;&nbsp;
						<span>
						<span id="todayWeather">
							<script type="text/javascript">
							var tianqi = ${todayIndexes.todayIndexes.todayWeather};
								if(tianqi==1){
									document.write("晴");
								}else if(tianqi==2){
									document.write("阴");
								}else if(tianqi==3){
									document.write("雨");
								}else if(tianqi==4){
									document.write("雪");
								}else if(tianqi==5){
									document.write("沙尘");
								}else{
									document.write("其他");
								}
							</script>
							&nbsp;&nbsp;
						</span>
						<span>
						<script type="text/javascript">
							var date=new Date();
							document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate());
						</script>
						</span>
						</span>
					</div>
				</div>
				<div class="ttjrjg"></div>
				<div class="ttjrlb"></div>
			</div>
			<div class="floatleft ttjg em36"></div>
			<div class="floatleft ttzr whitediv em36">
				<div class="ttjrlb"></div>
				<div class="ttjrjg"></div>
				<div class="ttjrzt">
					<div class="floatleft lineh36">
						<span class="font22">昨日</span>
						
					</div>
					<div class="floatright lineh36">
						<img src="images/weather${todayIndexes.todayIndexes.lastDayWeather}.png" class="weatherimg vermiddle"/>&nbsp;&nbsp;
						<span>
						<span id="lastDayWeather">
							<script type="text/javascript">
							var tianqi = ${todayIndexes.todayIndexes.lastDayWeather};
								if(tianqi==1){
									document.write("晴");
								}else if(tianqi==2){
									document.write("阴");
								}else if(tianqi==3){
									document.write("雨");
								}else if(tianqi==4){
									document.write("雪");
								}else if(tianqi==5){
									document.write("沙尘");
								}else{
									document.write("其他");
								}
							</script>
							&nbsp;&nbsp;
						</span><span>
						<script type="text/javascript">
							var date=new Date();
							date.setDate(date.getDate()-1);//获取昨天 的日期
							document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate());
						</script>
						</span>
						</span>
					</div>
				</div>
				<div class="ttjrjg"></div>
				<div class="ttjrlb"></div>
			</div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em36">
				<div class="ttjrlb"></div>
				<div class="ttjrjg"></div>
				<div class="ttjrzt">
					<div class="floatleft lineh36">
						<span class="font22">上周同日</span>
						
					</div>
					<div class="floatright lineh36">
						<img src="images/weather${todayIndexes.todayIndexes.lastWeekWeather}.png" class="weatherimg vermiddle"/>&nbsp;&nbsp;
						<span>
						<span id="lastWeekWeather">
							<script type="text/javascript">
							var tianqi = ${todayIndexes.todayIndexes.lastWeekWeather};
								if(tianqi==1){
									document.write("晴");
								}else if(tianqi==2){
									document.write("阴");
								}else if(tianqi==3){
									document.write("雨");
								}else if(tianqi==4){
									document.write("雪");
								}else if(tianqi==5){
									document.write("沙尘");
								}else{
									document.write("其他");
								}
							</script>
							&nbsp;&nbsp;
						</span><span>
						<script type="text/javascript">
							var date=new Date();
							date.setDate(date.getDate()-7);
							document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate());
						</script>
						</span>
						</span>
					</div>
				</div>
				<div class="ttjrjg"></div>
				<div class="ttjrlb"></div>
			</div>
			<div class="floatleft ttjr whitediv em20"></div>
			<div class="floatleft ttjg em20"></div>
			<div class="floatleft ttzr whitediv em20"></div>
			<div class="floatleft ttjg em20"></div>
			<div class="floatleft ttzr whitediv em20"></div>
			<div class="floatleft ttjr whitediv em5">
				<div class="ttjrlb"></div>
				<div class="ttjrbar"></div>
				<div class="ttjrlb"></div>
			</div>
			<div class="floatleft ttjg em5"></div>
			<div class="floatleft ttzr whitediv em5">
				<div class="ttzrlb"></div>
				<div class="ttzrbar"></div>
				<div class="ttzrlb"></div>
			</div>
			<div class="floatleft ttjg em5"></div>
			<div class="floatleft ttzr whitediv em5">
				<div class="ttzrlb"></div>
				<div class="ttzrbar"></div>
				<div class="ttzrlb"></div>
			</div>
			<div class="floatleft ttjr whitediv em25"></div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em25"></div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em25"></div>
			
			<!-- 一个指标开始 -->
			<c:forEach var="indexDataList" items="${todayIndexes.indexDataList}">
			<div class="floatleft ttjr whitediv em75">
				<div class="ttjrlb"></div>
				<div class="ttjrjg"></div>
				<div class="ttjrzt">
					<div class="floatleft heigthall">
						<div class="ttname em25 lineh25"><span>
<!--						客流量/人次-->
						<script type="text/javascript">
								var index = ${indexDataList.indexNum};
								document.write(array[parseInt(index)]+"/"+arraydanwei[parseInt(index)]);
						</script>
						</span></div>
						<div class="ttvalue em50 lineh50 selectcolor"><span><fmt:formatNumber value="${indexDataList.IndexesData.dayData}" pattern="#,##0" /></span></div>
					</div>
					<div class="floatright heigthall">
						<table class="indextable lineh75">
							<tr>
								<td class="textL">${lang.compareYesterday}</td>
								<td class="textR selectcolor">
<!--								  <script type="text/javascript">-->
<!--										var dayData = ${indexDataList.IndexesData.dayData};-->
<!--										var lastDayData = ${indexDataList.IndexesData.lastDayData}; -->
<!--										dayData = parseFloat(dayData);-->
<!--										lastDayData = parseFloat(lastDayData);-->
<!--										if(lastDayData!=0){-->
<!--											if(dayData>lastDayData){-->
<!--											document.write("+");-->
<!--											}else{-->
<!--											document.write("-");-->
<!--											}-->
<!--										}-->
<!--								</script>-->
<!--									 <script type="text/javascript">-->
<!--										var dayData = ${indexDataList.IndexesData.dayData};-->
<!--										var lastDayData = ${indexDataList.IndexesData.lastDayData}; -->
<!--										dayData = parseFloat(dayData);-->
<!--										lastDayData = parseFloat(lastDayData);-->
<!--										var per1 = "";-->
<!--										if(lastDayData!=0){-->
<!--										    per1 = parseInt((dayData-lastDayData)*100/lastDayData);-->
<!--											if(per1<0){-->
<!--												per1 = 0 - per1;-->
<!--											}-->
<!--											document.write(per1);-->
<!--										}else{-->
<!--											per1 = "--";-->
<!--											document.write(per1);-->
<!--										}-->
<!--										-->
<!--									</script>-->
									${indexDataList.comLastDay}%
								</td>
							</tr>
							<tr>
								<td class="textL">${lang.compareLastWeekToday}</td>
								<td class="textR selectcolor">
<!--									 <script type="text/javascript">-->
<!--											var dayData = ${indexDataList.IndexesData.dayData};-->
<!--											var lastWeekData = ${indexDataList.IndexesData.lastWeekData}; -->
<!--											dayData = parseFloat(dayData);-->
<!--											lastWeekData = parseFloat(lastWeekData);-->
<!--											if(lastWeekData!=0){-->
<!--												if(dayData>lastWeekData){-->
<!--												document.write("+");-->
<!--												}else{-->
<!--												document.write("-");-->
<!--												}-->
<!--											}-->
<!--									</script>-->
<!--										 <script type="text/javascript">-->
<!--											var dayData = ${indexDataList.IndexesData.dayData};-->
<!--											var lastWeekData = ${indexDataList.IndexesData.lastWeekData}; -->
<!--											dayData = parseFloat(dayData);-->
<!--											lastWeekData = parseFloat(lastWeekData);-->
<!--											var per = ""-->
<!--											if(lastWeekData!=0){-->
<!--												per = parseInt((dayData-lastWeekData)*100/lastWeekData);-->
<!--												if(per<0){-->
<!--													per = 0 - per;-->
<!--												}-->
<!--												document.write(per);-->
<!--											}else{-->
<!--												per = "--";-->
<!--												document.write(per);-->
<!--											}-->
<!--											-->
<!--										</script>-->
									${indexDataList.comLastWeekDay}%
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ttjrjg"></div>
				<div class="ttjrlb"></div>
			</div>
			<div class="floatleft ttjg em75"></div>
			<div class="floatleft ttzr whitediv em75">
				<div class="ttzrlb"></div>
				<div class="ttzrjg"></div>
				<div class="ttzrzt">
					<div class="ttname em25 lineh25"><span>
<!--					客流量/人次-->
						<script type="text/javascript">
								var index = ${indexDataList.indexNum};
								document.write(array[parseInt(index)]+"/"+arraydanwei[parseInt(index)]);
						</script>
					</span></div>
					<div class="ttvalue em50 lineh50"><span><fmt:formatNumber value="${indexDataList.IndexesData.lastDayData}" pattern="#,##0" /></span></div>
				</div>
				<div class="ttzrjg"></div>
				<div class="ttzrlb"></div>
			</div>
			<div class="floatleft ttjg em75"></div>
			<div class="floatleft ttzr whitediv em75">
				<div class="ttzrlb"></div>
				<div class="ttzrjg"></div>
				<div class="ttzrzt">
					<div class="ttname em25 lineh25"><span>
<!--					客流量/人次-->
						<script type="text/javascript">
								var index = ${indexDataList.indexNum};
								document.write(array[parseInt(index)]+"/"+arraydanwei[parseInt(index)]);
						</script>
					</span></div>
					<div class="ttvalue em50 lineh50"><span><fmt:formatNumber value="${indexDataList.IndexesData.lastWeekData}" pattern="#,##0" /></span></div>
				</div>
				<div class="ttzrjg"></div>
				<div class="ttzrlb"></div>
			</div>
			<div class="cleardiv"></div>
			<div class="floatleft ttjr whitediv em25"></div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em25"></div>
			<div class="floatleft ttjg em25"></div>
			<div class="floatleft ttzr whitediv em25"></div>
			<!-- 该指标结束 -->
			</c:forEach>
		</div>
		<div class="cleardiv"></div>
		
		<!-- 模块结束 -->
		
		
	<!-- 	<table class="todayindex indextable hide">
			<tr>
				<td class="em25 zblb"></td>
				<td class="zbindex"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq"></td>
				<td class="zblb"></td>
			</tr>
			<tr>
				<td class="em100 zblb"></td>
				<td class="zbindex indexline textcenter">
					<div>
						<span class="font16">${lang.today}${lang.traffic}/${lang.renci}</span>
					</div>
					<div class="bold">
						<span class="font32"><fmt:formatNumber value="${todayIndexes.traffic}" pattern="#,##0" /></span>
					</div>
				</td>
				<td class="zbduibi indexline">
					<table class="font16 indextable" style="margin:auto">
							<tr>
								<td class="textL">
									${lang.compareYesterday}
								</td>
								<td class="textR">
									<c:if
										test="${todayIndexes.traffic>todayIndexes.lastDayTraffic}">+</c:if>
									<c:if test="${todayIndexes.lastDayTraffic==0}">0</c:if>
									<c:if test="${todayIndexes.lastDayTraffic!=0}">
										<fmt:formatNumber
											value="${(todayIndexes.traffic-todayIndexes.lastDayTraffic)*100/todayIndexes.lastDayTraffic }"
											pattern="#,##0" />
									</c:if>
									%
								</td>
							</tr>
							<tr>
								<td class="textL">
									${lang.compareLastWeekToday}
								</td>
								<td class="textR">
									<c:if
										test="${todayIndexes.traffic>todayIndexes.lastWeekTraffic}">+</c:if>
									<c:if test="${todayIndexes.lastWeekTraffic==0}">0</c:if>
									<c:if test="${todayIndexes.lastWeekTraffic!=0}">
										<fmt:formatNumber
											value="${(todayIndexes.traffic-todayIndexes.lastWeekTraffic)*100/todayIndexes.lastWeekTraffic }"
											pattern="#,##0" />
									</c:if>
									%
								</td>
							</tr>
						</table>
				</td>
				<td class="zbduibi indexline textcenter">
					<div>
						<span class="font16">${lang.yeaterday}${lang.traffic}/${lang.renci}</span>
					</div>
					<div>
						<span class="font16"><fmt:formatNumber value="${todayIndexes.lastDayTraffic}" pattern="#,##0" /></span>
					</div>
				</td>
				<td class="zbduibi indexline textcenter">
					<div>
						<span class="font16">${lang.lastWeekToday}${lang.traffic}/${lang.renci}</span>
					</div>
					<div>
						<span class="font16"><fmt:formatNumber value="${todayIndexes.lastWeekTraffic}"
							pattern="#,##0" /></span>
					</div>
				</td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq indexhline lineh16 textcenter">
					<img class="tianqitp" src="images/weather${todayIndexes.todayWeather}.png"/>
					<br/>${lang.today}
					<br/><span class="gray">
						<script type="text/javascript">
							var date=new Date();
							document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+"&nbsp;");
						</script>
					</span>
					<br/>
						<script type="text/javascript">
							var tianqi = ${todayIndexes.todayWeather};
							if(tianqi==1){
								document.write("晴");
							}else if(tianqi==2){
								document.write("阴");
							}else if(tianqi==3){
								document.write("雨");
							}else if(tianqi==4){
								document.write("雪");
							}else if(tianqi==5){
								document.write("沙尘");
							}else{
								document.write("其他");
							}
						</script>
				</td>
				<td class="zblb"></td>
			</tr>
			<tr>
				<td class="em25 zblb"></td>
				<td class="zbindex"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq indexhline"></td>
				<td class="zblb"></td>
			</tr>
			<tr>
				<td class="em100 zblb"></td>
				<td class="zbindex indexline textcenter">
					<div>
						<span class="font16">${lang.today}${lang.pos}/${lang.yuan}</span>
					</div>
					<div class="bold">
						<span class="font32"><fmt:formatNumber value="${todayIndexes.pos}" pattern="#,##0.00" /></span>
					</div>
				</td>
				<td class="zbduibi indexline">
					<table class="font16 indextable" style="margin:auto">
						<tr>
							<td class="textL">
								${lang.compareYesterday}
							</td>
							<td class="textR">
								<c:if test="${todayIndexes.pos>todayIndexes.lastDayPos}">+</c:if>
									<c:if test="${todayIndexes.lastDayPos==0}">0</c:if>
									<c:if test="${todayIndexes.lastDayPos!=0}">
										<fmt:formatNumber
											value="${(todayIndexes.pos-todayIndexes.lastDayPos)*100/todayIndexes.lastDayPos }"
											pattern="#,##0" />
									</c:if>
									%
							</td>
						</tr>
						<tr>
							<td class="textL">
								${lang.compareLastWeekToday}
							</td>
							<td class="textR">
								<c:if test="${todayIndexes.pos>todayIndexes.lastWeekPos}">+</c:if>
									<c:if test="${todayIndexes.lastWeekPos==0}">0</c:if>
									<c:if test="${todayIndexes.lastWeekPos!=0}">
										<fmt:formatNumber
											value="${(todayIndexes.pos-todayIndexes.lastWeekPos)*100/todayIndexes.lastWeekPos }"
											pattern="#,##0" />
									</c:if>
									%
							</td>
						</tr>
					</table>
				</td>
				<td class="zbduibi indexline textcenter">
					<div>
						<span class="font16">${lang.yeaterday}${lang.pos}/${lang.yuan}</span>
					</div>
					<div>
						<span class="font16"><fmt:formatNumber value="${todayIndexes.lastDayPos}"
							pattern="#,##0.00" /></span>
					</div>
				</td>
				<td class="zbduibi indexline textcenter">
					<div>
						<span class="font16">${lang.lastWeekToday}${lang.pos}/${lang.yuan}</span>
					</div>
					<div>
						<span class="font16"><fmt:formatNumber value="${todayIndexes.lastWeekPos}"
							pattern="#,##0.00" /></span>
					</div>
				</td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq indexhline textcenter">
					<img class="tianqitp" src="images/weather${todayIndexes.lastDayWeather}.png"/>
					<br/>${lang.yeaterday}
					<br/>
						<span class="gray">
							<script type="text/javascript">
								var date=new Date();
								date.setDate(date.getDate()-1);//获取昨天 的日期
								document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+"&nbsp;");
							</script>
						</span>
					<br/>
					<script type="text/javascript">
						var tianqi = ${todayIndexes.lastDayWeather};
						if(tianqi==1){
							document.write("晴");
						}else if(tianqi==2){
							document.write("阴");
						}else if(tianqi==3){
							document.write("雨");
						}else if(tianqi==4){
							document.write("雪");
						}else if(tianqi==5){
							document.write("沙尘");
						}else{
							document.write("其他");
						}
					</script>

				</td>
				<td class="zblb"></td>
			</tr>
			<tr>
				<td class="em25 zblb"></td>
				<td class="zbindex"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq indexhline"></td>
				<td class="zblb"></td>
			</tr>
			<tr>
				<td class="em100 zblb"></td>
				<td class="zbindex indexline textcenter">
					<div>
						<span class="font16">${lang.today}${lang.numOfCustom}/${lang.ren}</span>
					</div>
					<div class="bold">
						<span class="font32"><fmt:formatNumber value="${todayIndexes.sigleUv}" pattern="#,##0" /></span>
					</div>
				</td>
				<td class="zbduibi indexline">
					<table class="font16 indextable" style="margin:auto">
						<tr>
							<td class="textL">
								${lang.compareYesterday}
							</td>
							<td class="textR">
								<c:if
									test="${todayIndexes.sigleUv>todayIndexes.lastDaySigleUv}">+</c:if>
								<c:if test="${todayIndexes.lastDaySigleUv==0}">0</c:if>
								<c:if test="${todayIndexes.lastDaySigleUv!=0}">
									<fmt:formatNumber
										value="${(todayIndexes.sigleUv-todayIndexes.lastDaySigleUv)*100/todayIndexes.lastDaySigleUv }"
										pattern="#,##0" />
								</c:if>
								%
							</td>
						</tr>
						<tr>
							<td class="textL">
								${lang.compareLastWeekToday}
							</td>
							<td class="textR">
								<c:if
									test="${todayIndexes.sigleUv>todayIndexes.lastWeekSigleUv}">+</c:if>
								<c:if test="${todayIndexes.lastWeekSigleUv==0}">0</c:if>
								<c:if test="${todayIndexes.lastWeekSigleUv!=0}">
									<fmt:formatNumber
										value="${(todayIndexes.sigleUv-todayIndexes.lastWeekSigleUv)*100/todayIndexes.lastWeekSigleUv }"
										pattern="#,##0" />
								</c:if>
								%
							</td>
						</tr>
					</table>
				</td>
				<td class="zbduibi indexline textcenter">
					<div>
						<span class="font16">${lang.yeaterday}${lang.numOfCustom}/${lang.ren}</span>
					</div>
					<div>
						<span class="font16"><fmt:formatNumber value="${todayIndexes.lastDaySigleUv}"
							pattern="#,##0" /></span>
					</div>
				</td>
				<td class="zbduibi indexline textcenter">
					<div>
						<span class="font16">${lang.lastWeekToday}${lang.numOfCustom}/${lang.ren}</span>
					</div>
					<div>
						<span class="font16"><fmt:formatNumber value="${todayIndexes.lastWeekSigleUv}"
							pattern="#,##0" /></span>
					</div>
				</td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq indexhline textcenter">
					<img class="tianqitp" src="images/weather${todayIndexes.lastWeekWeather}.png"/>
					<br/>${lang.lastWeekToday}
					<br/>
						<span class="gray">
							<script type="text/javascript">
								var date=new Date();
								date.setDate(date.getDate()-7);//获取昨天 的日期
								document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+"&nbsp;");
							</script>

						</span>
					<br/>
					<script type="text/javascript">
						var tianqi = ${todayIndexes.lastWeekWeather};
						if(tianqi==1){
							document.write("晴");
						}else if(tianqi==2){
							document.write("阴");
						}else if(tianqi==3){
							document.write("雨");
						}else if(tianqi==4){
							document.write("雪");
						}else if(tianqi==5){
							document.write("沙尘");
						}else{
							document.write("其他");
						}
					</script>
				</td>
				<td class="zblb"></td>
			</tr>
			<tr>
				<td class="em25 zblb"></td>
				<td class="zbindex"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zbduibi"></td>
				<td class="zblb"></td>
				<td class="jbjg"></td>
				<td class="zblb"></td>
				<td class="zbtq"></td>
				<td class="zblb"></td>
			</tr>
		</table>-->
	</body>
</html>
